package com.lb.activity.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * @author liubin
 */
@ApiModel(value = "com-lb-activity-po-User")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable {
    private static final long serialVersionUID = -3365727724408790678L;
    /**
     * id
     */
    @Id
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Long groupId;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Long status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 上级领导
     */
    @ApiModelProperty(value = "上级领导")
    private Long managerId;

    /**
     * 盐
     */
    @ApiModelProperty(value = "盐")
    private byte[] salt;

    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    private String groupName;

    /**
     * 岗位id
     */
    @ApiModelProperty(value = "岗位id")
    private Long stationId;

    /**
     * 岗位名称
     */
    @ApiModelProperty(value = "岗位名称")
    private String stationName;


    @ApiModelProperty(value = "是否是leader")
    private Long isLeader;

    @ApiModelProperty(value = "中文姓名")
    private String userNameCn;

    @ApiModelProperty(value = "审核角色")
    private Long examineRole;
}
